#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include "md5.h"



int main(int argc,int argv)
{
    MD5_CTX ctx;
    unsigned char buf[16] = {0};
    char *test = "this is test for md5";
    MD5Init(&ctx);
    MD5Update(&ctx,test,strlen(test));
    MD5Final(buf,&ctx);
    int i=0;
    for (i=0;i<16;i++) {
        printf("%x",buf[i]);
    }
    printf("\n");
    return 0;
}
